package com.jade.framework.base.text;

import java.io.IOException;
import java.io.Writer;

/**
 * 转义工具。
 *
 * @author sky
 * @version 1.0 14-9-22 下午4:25
 */
public interface Escaper
{
    public void escape(char[] chars, int off, int len, Writer out)
            throws IOException;

    public void escape(String str, int off, int len, Writer out)
            throws IOException;

    public String unescape(char[] chars, int off, int len);

    public String unescape(byte[] bytes, int off, int len, String encoding);
}
